package cn.example.vip.mall.util;

public enum RespCode {
	SUCCESS(200, "操作成功"),
	ACCESS_DENIED(401, "拒绝访问"),
	ERROR(500, "操作失败"),
	SYSTEM_ERROR(501, "系统错误");
	
	private Integer code;
	private String msg;
	
	RespCode(Integer code, String msg) {
		this.code = code;
		this.msg = msg;
	}
	
	public Integer getCode() {
		return code;
	}
	
	public void setCode(Integer code) {
		this.code = code;
	}
	
	public String getMsg() {
		return msg;
	}
	
	public void setMsg(String msg) {
		this.msg = msg;
	}
}
